#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 
#include <math.h> 
#include <ctype.h> 
#include <time.h> 
#include <assert.h>

#define pai 3.1415926
int main()
{
	double r, h;
	scanf("%lf%lf", &r, &h);
	double zhou = 2 * pai * r;
	double mian = pai * r * r;
	double biao = 4 * pai * r * r;
	double ti = (4.0 / 3) * pai * pow(r, 3);
	double zhu = mian * h;
	printf("%.2f %.2f %.2f %.2f %.2f\n", zhou, mian, biao, ti, zhu);
	return 0;
}